package com.spring;

public class SingLeton {
    private static SingLeton singLeton;
    private SingLeton(){

    }
    public  static  class SingletonHelper{
        private static  final SingLeton INSTANCE = new SingLeton();

    }
    public static  SingLeton getInstance(){
        singLeton = SingletonHelper.INSTANCE;
        return  singLeton;
    }
    public static SingLeton test(){
        return singLeton;
    }
}
